package com.lzx.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzx.user.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzx
 * @since 2022-11-22
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    //获取所有用户
    List<SysUser> getSysUserList();

    //通过手机号来查询用户
    SysUser selectByMobile(String mobile);

    //解禁用户
    SysUser selectSysUserById(Long id);

    //更新用户
    void updateSysUserById(Long id);
}
